<?php
namespace Inationsoft\Koma;

use Inationsoft\NS;
use Inationsoft\NS\Core\Controller;
use Inationsoft\NS\Core\Model;
use Inationsoft\NS\UI\ScriptManager;
use Inationsoft\NS\UI\StyleManager;
use Inationsoft\NS\UI\Widget;
use Inationsoft\NS\Core\Config;

define('_NAMESPACE_', '\Inationsoft\Koma');

class IntellectualPropertyNotice extends Controller {
	private $_redirectBase;

	function index() {
		$this->_redirectBase = NS\String::toLowerCase(get_class($this));

		ScriptManager::getInstance()->addSource(NS_JQUERY_PATH);
		ScriptManager::getInstance()->addSource(NS_JQUERY_UI_PATH);
		ScriptManager::getInstance()->addScript('jQuery(function() { jQuery( "#tabs" ).tabs().addClass( "ui-tabs-vertical ui-helper-clearfix" ); jQuery( "#tabs li" ).removeClass( "ui-corner-top" ).addClass( "ui-corner-left" ); });');
		StyleManager::getInstance()->addExternalSource(NS_JQUERY_UI_STYLE_URL);
		//StyleManager::getInstance()->addSource($this->Path . '/assets/css/intellectualpropertynotice.css');

		$this->View->assign('app_base_url', NS_BASE_URL . '/' . $this->_redirectBase);
		$this->View->File = 'intellectualpropertynotice/index.php';

		if(is_file(NS\Core\Config::getInstance()->Koma->ThemePath . '/admin/theme.php')) {
			NS\Core\Config::getInstance()->Koma->ThemePath .= '/admin';
			NS\Core\Config::getInstance()->Koma->ThemePublicURL .= '/admin';
		}
	}
}
?>